<?
include "include/config.php";




if($_GET["agent_id"]!="") {
    $where= " and id=".addslashes($_GET["agent_id"])." ";
}

$user_mod_query=mysql_query("select * from users where level=10 $where ORDER BY name ") ;	 
while ($user=mysql_fetch_assoc($user_mod_query) )
$users[]=$user;

$smarty->assign('agents',$users);


$smarty->assign("content", $smarty->fetch(tmpd.'agent'.tmpl_ext));
include "include/make_page.php";
?>


